/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-11-24 22:18:21  
 * Copyright (c) 2015- joysuch-版权所有     
 */

package com.joysuch.wwyt.risk.repository;

import java.util.List;

import com.joysuch.wwyt.risk.entity.RiskEvaluationMethodItem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * RiskEvaluationMethodItemDao
 * 
 */
public interface RiskEvaluationMethodItemDao extends JpaRepository<RiskEvaluationMethodItem, Long> {
    public Page<RiskEvaluationMethodItem> findAll(Specification<RiskEvaluationMethodItem> spec, Pageable pageable);

    public RiskEvaluationMethodItem save(RiskEvaluationMethodItem bean);

    public void delete(RiskEvaluationMethodItem bean);

    public List<RiskEvaluationMethodItem> findByMethodAndSubFactorCode(String method, String subFactorCode);

    public List<RiskEvaluationMethodItem> findByMethodAndFactor(String method, String factor);

}
